{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Populating the interactive namespace from numpy and matplotlib\n"
     ]
    }
   ],
   "source": [
    "%pylab inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "﻿The Project Gutenberg EBook of An Inquiry into the Nature and Causes of\n",
      "the Wealth of Nations, by Adam Smith\n",
      "\n",
      "This eBook is for the use of anyone anywhere at no cost and with\n",
      "almost no restrictions whatsoever. You may copy it, give it away or\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n",
      "                                 Dload  Upload   Total   Spent    Left  Speed\n",
      "\r",
      "  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r",
      "  0 2223k    0  5014    0     0   5864      0  0:06:28 --:--:--  0:06:28  5864\r",
      " 22 2223k   22  509k    0     0   309k      0  0:00:07  0:00:01  0:00:06  309k\r",
      "100 2223k  100 2223k    0     0  1106k      0  0:00:02  0:00:02 --:--:-- 1107k\n"
     ]
    }
   ],
   "source": [
    "%%bash\n",
    "if test -f won-raw.txt; then\n",
    "    echo using existing won-raw.txt\n",
    "else\n",
    "    curl http://www.gutenberg.org/cache/epub/3300/pg3300.txt | \n",
    "        sed 's/\\r//'  |\n",
    "        sed 's/^ *//;s/ *$//' |\n",
    "        grep -v '   ' |\n",
    "        sed 's/  */ /g' > won-raw.txt\n",
    "    sed 5q won-raw.txt\n",
    "fi"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "the same as before, the same quantity of money will be sufficient for\r\n",
      "whole of the advantages and disadvantages of the different employments\r\n",
      "in trade might frequently be advantageous to the country. They were\r\n",
      "of the person whose expense had been chiefly in durable commodities,\r\n",
      "on the side of its adversaries. In England, those arts have been long\r\n"
     ]
    }
   ],
   "source": [
    "!awk 'length()>10' won-raw.txt | sort -R > won.txt\n",
    "!sed 5q won.txt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "!sed 's/ //g' < won.txt > won-nospc.txt\n",
    "!paste won-nospc.txt won.txt > won-all.txt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "   32543 won-all.txt\n",
      "   32543 won-nospc.txt\n",
      "   35224 won-raw.txt\n",
      "    3254 won-test.txt\n",
      "   29289 won-train.txt\n",
      "  132853 total\n",
      "Licenseasspecifiedinparagraph1.E.1.\tLicense as specified in paragraph 1.E.1.\n",
      "paidbythelandlordsandconsumers.\tpaid by the landlords and consumers.\n",
      "isthegeneralinterestofthewhole.\tis the general interest of the whole.\n",
      "sceneofviolence,rapine,anddisorder.\tscene of violence, rapine, and disorder.\n",
      "thecomputedwasinfavourofFrance.\tthe computed was in favour of France.\n",
      "otherwisebemereexpense.\totherwise be mere expense.\n",
      "cent.isperhapsasproperasany.\tcent. is perhaps as proper as any.\n",
      "altogetherinnocent?\taltogether innocent?\n",
      "uncertaintythatIamherespeaking.\tuncertainty that I am here speaking.\n",
      "thanintheformer.\tthan in the former.\n",
      "awk: cmd. line:1: (FILENAME=won-train.txt FNR=4743) fatal: print to \"standard output\" failed (Broken pipe)\n"
     ]
    }
   ],
   "source": [
    "!awk 'NR%10==0' < won-all.txt > won-test.txt\n",
    "!awk 'NR%10!=0' < won-all.txt > won-train.txt\n",
    "!wc -l won-*.txt\n",
    "!awk 'length()<80' won-train.txt | sed 10q"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "#: mode = train\n",
      "#: seed = 0\n",
      "got 29289 lines\n",
      "#: load = \n",
      "#: save_every = 0\n",
      "#: save_name = addspaces\n",
      "#: after_save = \n",
      "#: ntrain = 100000\n",
      "#: lrate = 0.001\n",
      "#: nhidden = 30\n",
      "#: display_every = 0\n",
      "#: report_every = 1000\n",
      "#: randomize = 1\n",
      "#: lrnorm = batch\n",
      "#: lstm = BIDILSTM\n",
      "#: lstm_type = LSTM\n",
      "#: output_type = SoftmaxLayer\n",
      "#: testset = won-test.txt\n",
      "#: test_every = 5000\n",
      "#: after_test = \n",
      "params hg_version af046c0a1724+ lrate 0.001 nhidden 30 nhidden2 -1 batch 1 momentum 0.9\n"
     ]
    }
   ],
   "source": [
    "!maxeval=1000 save_every=0 save_name=addspaces lrate=1e-3 nhidden=30 report_every=1000 \\\n",
    "test_every=5000 lstm=BIDILSTM testset=won-test.txt ntrain=100000 \\\n",
    "params=1 ../clstmtext won-train.txt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "got 29288 files, 3254 tests\n",
      "#: nhidden = 100\n",
      "#: momentum = 0.9\n",
      "#: rate = 0.0001\n",
      ".stacked: 0.0001 0.9 in 0 91 out 0 92\n",
      ".stacked.parallel: 0.0001 0.9 in 0 91 out 0 200\n",
      ".stacked.parallel.lstm: 0.0001 0.9 in 0 91 out 0 100\n",
      ".stacked.parallel.reversed: 0.0001 0.9 in 0 91 out 0 100\n",
      ".stacked.parallel.reversed.lstm: 0.0001 0.9 in 0 91 out 0 100\n",
      ".stacked.softmax: 0.0001 0.9 in 0 200 out 0 92\n",
      "#: maxtrain = 10000000\n",
      "#: save_every = 10000\n",
      "#: save_name = _ocr\n",
      "#: report_every = 100\n",
      "#: test_every = 10000\n",
      "0\n",
      "INP whichthedifferentemploymentsofcapitalimmediatelyproduceuponthe\n",
      "TRU which the different employments of capital immediately produce upon the\n",
      "ALN \n",
      "OUT \n",
      "100\n",
      "INP thantentimesthequantityoflabourwhichhadbeforebeensufficient\n",
      "TRU than ten times the quantity of labour which had before been sufficient\n",
      "ALN \n",
      "OUT \n",
      "200\n",
      "INP determinestheownerofanycapitaltoemployiteitherinagriculture,\n",
      "TRU determines the owner of any capital to employ it either in agriculture,\n",
      "ALN \n",
      "OUT \n",
      "300\n",
      "INP withoneanother,thisdoctrinesupposesthat,ifthebalancebeeven,\n",
      "TRU with one another, this doctrine supposes that, if the balance be even,\n",
      "ALN \n",
      "OUT \n",
      "400\n",
      "INP fromthis,butfromanothercause.Theproportionoftheexpenseof\n",
      "TRU from this, but from another cause. The proportion of the expense of\n",
      "ALN \n",
      "OUT \n",
      "500\n",
      "INP policy,thebalanceoftrade,appearstobeinourfavourwithsome\n",
      "TRU policy, the balance of trade, appears to be in our favour with some\n",
      "ALN \n",
      "OUT \n",
      "600\n",
      "INP inthepresenttimes.\n",
      "TRU in the present times.\n",
      "ALN \n",
      "OUT \n",
      "700\n",
      "INP purpose,andforthispurposeonly,inthetwolastwars,morethantwo\n",
      "TRU purpose, and for this purpose only, in the two last wars, more than two\n",
      "ALN \n",
      "OUT \n",
      "800\n",
      "INP hadbeenaccustomedtoreceiveinthe20thyearoftheking,andthe\n",
      "TRU had been accustomed to receive in the 20th year of the king, and the\n",
      "ALN \n",
      "OUT \n",
      "900\n",
      "INP sovereign;ifitwasinordertomakecourttothepersonwhoappointed\n",
      "TRU sovereign; if it was in order to make court to the person who appointed\n",
      "ALN \n",
      "OUT \n",
      "1000\n",
      "INP employmenttothemall.Tea,forexample,wasadrugverylittleusedin\n",
      "TRU employment to them all. Tea, for example, was a drug very little used in\n",
      "ALN \n",
      "OUT \n",
      "1100\n",
      "INP platebeingmelteddown.Thecirculatinggoldandsilverofthecountry\n",
      "TRU plate being melted down. The circulating gold and silver of the country\n",
      "ALN \n",
      "OUT \n",
      "1200\n",
      "INP admitsofanyconsiderableinequalityoffortune.ATartarchief,the\n",
      "TRU admits of any considerable inequality of fortune. A Tartar chief, the\n",
      "ALN \n",
      "OUT \n",
      "1300\n",
      "INP shillingsa-week,thesameprice,verynearlystillcontinuestobepaid\n",
      "TRU shillings a-week, the same price, very nearly still continues to be paid\n",
      "ALN \n",
      "OUT \n",
      "1400\n",
      "INP fall,andwouldbeexpressedorrepresentedbyasmallerquantityof\n",
      "TRU fall, and would be expressed or represented by a smaller quantity of\n",
      "ALN \n",
      "OUT \n",
      "1500\n",
      "INP frequentlybuymoreadvantageouslywithgoldandsilver,thanwithany\n",
      "TRU frequently buy more advantageously with gold and silver, than with any\n",
      "ALN \n",
      "OUT \n",
      "1600\n",
      "INP weresubjected,indeed,toasmallpoundageduty,amountingonlyto\n",
      "TRU were subjected, indeed, to a small poundage duty, amounting only to\n",
      "ALN \n",
      "OUT \n",
      "1700\n",
      "INP Franceseemstohavehadaconsiderableshareofforeigncommerce,near\n",
      "TRU France seems to have had a considerable share of foreign commerce, near\n",
      "ALN \n",
      "OUT \n",
      "1800\n",
      "INP woolorofrawhides,islimited,sofarasitdependsupontheproduce\n",
      "TRU wool or of raw hides, is limited, so far as it depends upon the produce\n",
      "ALN \n",
      "OUT \n",
      "1900\n",
      "INP desireonlytoliveinsplendourduringtheirowntime,andarenot\n",
      "TRU desire only to live in splendour during their own time, and are not\n",
      "ALN \n",
      "OUT \n",
      "2000\n",
      "INP ofdisagreeableness,anditseffectsuponthewagesoflabouraretobe\n",
      "TRU of disagreeableness, and its effects upon the wages of labour are to be\n",
      "ALN \n",
      "OUT \n",
      "2100\n",
      "INP greaterquantityandvarietyofothergoods,tobuywith.Butitwill\n",
      "TRU greater quantity and variety of other goods, to buy with. But it will\n",
      "ALN \n",
      "OUT \n",
      "2200\n",
      "INP partwhichconsistsingoldandsilver,mostprobably,doesnotamount\n",
      "TRU part which consists in gold and silver, most probably, does not amount\n",
      "ALN \n",
      "OUT \n",
      "2300\n",
      "INP shortinacountrywhichhaswherewithaltopurchasethem,thereare\n",
      "TRU short in a country which has wherewithal to purchase them, there are\n",
      "ALN \n",
      "OUT \n",
      "2400\n",
      "INP aresometimesconfoundedwithoneanother,atleastincommonlanguage.\n",
      "TRU are sometimes confounded with one another, at least in common language.\n",
      "ALN \n",
      "OUT \n",
      "2500\n",
      "INP differentlawsandpolicyofthesocietyinwhichtheyarecarriedon.\n",
      "TRU different laws and policy of the society in which they are carried on.\n",
      "ALN \n",
      "OUT \n",
      "2600\n",
      "INP acquiredsometasteintheearlierpartoflife.\n",
      "TRU acquired some taste in the earlier part of life.\n",
      "ALN \n",
      "OUT \n",
      "2700\n",
      "INP coloniespartwiththeirownproduce.Themore,therefore,theypayfor\n",
      "TRU colonies part with their own produce. The more, therefore, they pay for\n",
      "ALN \n",
      "OUT \n",
      "2800\n",
      "INP manufactory,whoemploysathousanda-yearinthemaintenanceofhis\n",
      "TRU manufactory, who employs a thousand a-year in the maintenance of his\n",
      "ALN \n",
      "OUT \n",
      "2900\n",
      "INP BytheancientlawofFrance,aswellasbythatofmostotherpartsof\n",
      "TRU By the ancient law of France, as well as by that of most other parts of\n",
      "ALN \n",
      "OUT \n",
      "3000\n",
      "INP employedwasmuchmoreimperfectinthoseancient,thanitisinthe\n",
      "TRU employed was much more imperfect in those ancient, than it is in the\n",
      "ALN \n",
      "OUT \n",
      "3100\n",
      "INP CHAPTERVII.OFCOLONIES.\n",
      "TRU CHAPTER VII. OF COLONIES.\n",
      "ALN H\n",
      "OUT \n",
      "3200\n",
      "INP himselfverymuchinthem,andamusehimselfverywell;buthecertainly\n",
      "TRU himself very much in them, and amuse himself very well; but he certainly\n",
      "ALN \n",
      "OUT \n",
      "3300\n",
      "INP theinhabitantsofthetownandthoseofthecountry.Itconsistsinthe\n",
      "TRU the inhabitants of the town and those of the country. It consists in the\n",
      "ALN \n",
      "OUT \n",
      "3400\n",
      "INP greaterpartofthearticlesofexportation.Butifforeigners,either\n",
      "TRU greater part of the articles of exportation. But if foreigners, either\n",
      "ALN \n",
      "OUT \n",
      "3500\n",
      "INP beexpected,therefore,thatsomeoneorotherofthosewhoareemployed\n",
      "TRU be expected, therefore, that some one or other of those who are employed\n",
      "ALN \n",
      "OUT \n",
      "3600\n",
      "INP First,Theherring-bussbountyseemstoolarge.\n",
      "TRU First, The herring-buss bounty seems too large.\n",
      "ALN \n",
      "OUT \n",
      "3700\n",
      "INP occasiontosueforthepossessionoftheland,heseldommakesuse\n",
      "TRU occasion to sue for the possession of the land, he seldom makes use\n",
      "ALN \n",
      "OUT \n",
      "3800\n",
      "INP toincreasethewealthofanycountry,eitherbyintroducingorby\n",
      "TRU to increase the wealth of any country, either by introducing or by\n",
      "ALN \n",
      "OUT \n",
      "3900\n",
      "INP governmentagreedtorenderthislawperpetual.Shouldthecustomof\n",
      "TRU government agreed to render this law perpetual. Should the custom of\n",
      "ALN \n",
      "OUT \n",
      "4000\n",
      "INP necessaryconnectionwiththatoftheworldingeneral.Asartsand\n",
      "TRU necessary connection with that of the world in general. As arts and\n",
      "ALN \n",
      "OUT \n",
      "4100\n",
      "INP beconsideredastheinterestorprofitduetotheproprietor,uponthe\n",
      "TRU be considered as the interest or profit due to the proprietor, upon the\n",
      "ALN \n",
      "OUT \n",
      "4200\n",
      "INP practiseanyparticulartradeorprofession.Iftheopinionoftheirown\n",
      "TRU practise any particular trade or profession. If the opinion of their own\n",
      "ALN \n",
      "OUT \n",
      "4300\n",
      "INP consistentlywithhisowninterest,continuetheemployment.Ifhewas\n",
      "TRU consistently with his own interest, continue the employment. If he was\n",
      "ALN \n",
      "OUT \n",
      "4400\n",
      "INP considerablysincethattimethroughthegreaterpartofthekingdom,\n",
      "TRU considerably since that time through the greater part of the kingdom,\n",
      "ALN \n",
      "OUT \n",
      "4500\n",
      "INP withtheenemiesoftheconqueringparty,andwere,thereforethe\n",
      "TRU with the enemies of the conquering party, and were, therefore the\n",
      "ALN \n",
      "OUT \n",
      "4600\n",
      "INP homemaythereby,indeed,gainsomeadvantageinthehomemarket,and\n",
      "TRU home may thereby, indeed, gain some advantage in the home market, and\n",
      "ALN \n",
      "OUT \n",
      "4700\n",
      "INP thisactofparliamentwere,atthattime,theonlydutiesuponthe\n",
      "TRU this act of parliament were, at that time, the only duties upon the\n",
      "ALN \n",
      "OUT \n",
      "4800\n",
      "INP taille,istheleastconsiderable.Thelargestfallsuponthosesubject\n",
      "TRU taille, is the least considerable. The largest falls upon those subject\n",
      "ALN \n",
      "OUT \n",
      "4900\n",
      "INP ways,thattaxesarefrequentlysomuchmoreburdensometothepeople\n",
      "TRU ways, that taxes are frequently so much more burdensome to the people\n",
      "ALN \n",
      "OUT \n",
      "5000\n",
      "INP themilitiahasnotonlybeenexercised,butregimented.InEngland,in\n",
      "TRU the militia has not only been exercised, but regimented. In England, in\n",
      "ALN \n",
      "OUT \n",
      "5100\n",
      "INP Peru,thoughtheycannotbeconsideredasaltogethernewmarkets,are\n",
      "TRU Peru, though they cannot be considered as altogether new markets, are\n",
      "ALN \n",
      "OUT \n",
      "5200\n",
      "INP perhapsthereasonwhytheimprovementoftheproductivepowersof\n",
      "TRU perhaps the reason why the improvement of the productive powers of\n",
      "ALN \n",
      "OUT \n",
      "5300\n",
      "INP ofcorn.Thecountrygentlemen,whothencomposedastillgreater\n",
      "TRU of corn. The country gentlemen, who then composed a still greater\n",
      "ALN \n",
      "OUT \n",
      "5400\n",
      "INP inhabitedcountry,theopportunitiesofsmugglingareverygreat.\n",
      "TRU inhabited country, the opportunities of smuggling are very great.\n",
      "ALN \n",
      "OUT \n",
      "5500\n",
      "INP companies,whohadenjoyedituponthesametermsbeforethem,having\n",
      "TRU companies, who had enjoyed it upon the same terms before them, having\n",
      "ALN \n",
      "OUT \n",
      "5600\n",
      "INP ofthepresent.Thisisamatteroffactwhichcannotnowadmitof\n",
      "TRU of the present. This is a matter of fact which cannot now admit of\n",
      "ALN \n",
      "OUT \n",
      "5700\n",
      "INP Unlessacapitalwasemployedintransportingeithertherudeor\n",
      "TRU Unless a capital was employed in transporting either the rude or\n",
      "ALN \n",
      "OUT \n",
      "5800\n",
      "INP periodsoftime,withanydegreeofprecision,mustbealtogether\n",
      "TRU periods of time, with any degree of precision, must be altogether\n",
      "ALN \n",
      "OUT \n",
      "5900\n",
      "INP whichisstillinthehandsofthemerchantandmanufacturer,andnot\n",
      "TRU which is still in the hands of the merchant and manufacturer, and not\n",
      "ALN \n",
      "OUT \n",
      "6000\n",
      "INP itreallycoststhepersonwhobringsittomarket;forthough,in\n",
      "TRU it really costs the person who brings it to market; for though, in\n",
      "ALN \n",
      "OUT \n",
      "6100\n",
      "INP thegreaterpartoftheirgoldandsilvermoney,inordertopurchase\n",
      "TRU the greater part of their gold and silver money, in order to purchase\n",
      "ALN \n",
      "OUT \n",
      "6200\n",
      "INP tomakesettlementsinAmerica,wereanimatedbythelikechimerical\n",
      "TRU to make settlements in America, were animated by the like chimerical\n",
      "ALN \n",
      "OUT \n",
      "6300\n",
      "INP quantityofgoldandsilverinanycountry,byturningthebalance\n",
      "TRU quantity of gold and silver in any country, by turning the balance\n",
      "ALN \n",
      "OUT \n",
      "6400\n",
      "INP hasanywheredepositedinoneplace,fromthehardandintractable\n",
      "TRU has anywhere deposited in one place, from the hard and intractable\n",
      "ALN \n",
      "OUT \n",
      "6500\n",
      "INP restraintheproductionoftheparticulararticlesofwhichthey\n",
      "TRU restrain the production of the particular articles of which they\n",
      "ALN \n",
      "OUT \n",
      "6600\n",
      "INP greatestshareofthatauthority,astandingarmycanneverbedangerous\n",
      "TRU greatest share of that authority, a standing army can never be dangerous\n",
      "ALN \n",
      "OUT \n",
      "6700\n",
      "INP Thegreaterpartofitwouldreplacethecapitalswhichhadbeen\n",
      "TRU The greater part of it would replace the capitals which had been\n",
      "ALN \n",
      "OUT \n",
      "6800\n",
      "INP likelytofall,ifevertheneighbouringlandsarecompletelyinclosed.\n",
      "TRU likely to fall, if ever the neighbouring lands are completely inclosed.\n",
      "ALN \n",
      "OUT \n",
      "6900\n",
      "INP RestorationorattheRevolution.Thecapital,therefore,annually\n",
      "TRU Restoration or at the Revolution. The capital, therefore, annually\n",
      "ALN \n",
      "OUT \n",
      "7000\n",
      "INP andseventymillionshasbeencontracted,overandaboveallthathad\n",
      "TRU and seventy millions has been contracted, over and above all that had\n",
      "ALN \n",
      "OUT \n",
      "7100\n",
      "INP totheamountof£1,775,027:17s:10½d.atsixpercent.interest,and\n",
      "TRU to the amount of £ 1,775,027: 17s: 10½d. at six per cent. interest, and\n",
      "ALN \n",
      "OUT \n",
      "7200\n",
      "INP eightpence,theusualpriceofcommonlabourthroughthegreaterpart\n",
      "TRU eightpence, the usual price of common labour through the greater part\n",
      "ALN \n",
      "OUT \n",
      "7300\n",
      "INP orabrazier;afourth,atannerordresserofhidesorskins,the\n",
      "TRU or a brazier; a fourth, a tanner or dresser of hides or skins, the\n",
      "ALN \n",
      "OUT \n",
      "7400\n",
      "INP interestoftheformer,therefore,tocultivatethatgood-will,by\n",
      "TRU interest of the former, therefore, to cultivate that good-will, by\n",
      "ALN \n",
      "OUT \n",
      "7500\n",
      "INP ofSciences,severalofthemareactuallyexplainedinthismanner.The\n",
      "TRU of Sciences, several of them are actually explained in this manner. The\n",
      "ALN \n",
      "OUT \n",
      "7600\n",
      "INP inthedifferentperiodsofsociety,isevidentwithoutanyproof.The\n",
      "TRU in the different periods of society, is evident without any proof. The\n",
      "ALN \n",
      "OUT \n",
      "7700\n",
      "INP wayconfinedwithinamuchnarrowercirclethanthattowhichitwould\n",
      "TRU way confined within a much narrower circle than that to which it would\n",
      "ALN \n",
      "OUT \n",
      "7800\n",
      "INP coalsisashighasitcanbe.Itseemstobesoinsomeoftheinland\n",
      "TRU coals is as high as it can be. It seems to be so in some of the inland\n",
      "ALN \n",
      "OUT \n",
      "7900\n",
      "INP tooppose,withthesamezealandunanimity,anyreductioninthenumber\n",
      "TRU to oppose, with the same zeal and unanimity, any reduction in the number\n",
      "ALN \n",
      "OUT \n",
      "8000\n",
      "INP ofpreciousandlightcommodities.Whateverexigencyofthestate,\n",
      "TRU of precious and light commodities. Whatever exigency of the state,\n",
      "ALN \n",
      "OUT \n",
      "8100\n",
      "INP toaprohibition,andwhentheyestablishedthebounty,seemtohave\n",
      "TRU to a prohibition, and when they established the bounty, seem to have\n",
      "ALN \n",
      "OUT \n",
      "8200\n",
      "INP probablytoallthemanufacturingcountriesofEurope,butparticularly\n",
      "TRU probably to all the manufacturing countries of Europe, but particularly\n",
      "ALN \n",
      "OUT \n",
      "8300\n",
      "INP perhapstwoorthreepercent.neareritsstandard.Ifthecomputed\n",
      "TRU perhaps two or three per cent. nearer its standard. If the computed\n",
      "ALN ee\n",
      "OUT \n",
      "8400\n",
      "INP quantityofthosemetalswhichithasoccasionfor;andnocountrywill\n",
      "TRU quantity of those metals which it has occasion for; and no country will\n",
      "ALN \n",
      "OUT \n",
      "8500\n",
      "INP makemorethaneighthundredorathousandnailsinaday.Ihaveseen\n",
      "TRU make more than eight hundred or a thousand nails in a day. I have seen\n",
      "ALN e\n",
      "OUT \n",
      "8600\n",
      "INP them,averyconsiderablepartoftheirsubsistencefromthevoluntary\n",
      "TRU them, a very considerable part of their subsistence from the voluntary\n",
      "ALN eeee\n",
      "OUT \n",
      "8700\n",
      "INP philosophyasthedoctrineofbodies,ofwhichsomuchcanbeknown.The\n",
      "TRU philosophy as the doctrine of bodies, of which so much can be known. The\n",
      "ALN eee\n",
      "OUT \n",
      "8800\n",
      "INP inpreparingandsendingthemtomarket,canbecarriedonwithouta\n",
      "TRU in preparing and sending them to market, can be carried on without a\n",
      "ALN eeeeee\n",
      "OUT \n",
      "8900\n",
      "INP toallthosewho,fromtheirowninterest,wouldattempt,without\n",
      "TRU to all those who, from their own interest, would attempt, without\n",
      "ALN eeeee\n",
      "OUT \n",
      "9000\n",
      "INP Thislatterpartofprofitisevidentlyasubjectnottaxabledirectly.\n",
      "TRU This latter part of profit is evidently a subject not taxable directly.\n",
      "ALN eeeeee\n",
      "OUT \n",
      "9100\n",
      "INP greatmarketsofIndia,thanitisthroughthegreaterpartofEurope.\n",
      "TRU great markets of India, than it is through the greater part of Europe.\n",
      "ALN eeeeee\n",
      "OUT \n",
      "9200\n",
      "INP SecondPeriod.--Buthowvarioussoevermayhavebeentheopinionsofthe\n",
      "TRU Second Period.--But how various soever may have been the opinions of the\n",
      "ALN eceeee eene e\n",
      "OUT eee\n",
      "9300\n",
      "INP cornreallycoststhesociety.Thecapitalwhichthefarmeremployedin\n",
      "TRU corn really costs the society. The capital which the farmer employed in\n",
      "ALN eae ete e ereed\n",
      "OUT eeeeeeee\n",
      "9400\n",
      "INP withtheprinciplesoftheBritishconstitution,withoutadmittinginto\n",
      "TRU with the principles of the British constitution, without admitting into\n",
      "ALN e esohe \n",
      "OUT eee\n",
      "9500\n",
      "INP coin.Thispermissionofexporting,hesaid,renderedthedemandfor\n",
      "TRU coin. This permission of exporting, he said, rendered the demand for\n",
      "ALN erexhe reeede demo\n",
      "OUT eeeeeeee\n",
      "9600\n",
      "INP heaviestuponthelandlords,whoalwayspayinadoublecapacity;in\n",
      "TRU heaviest upon the landlords, who always pay in a double capacity; in\n",
      "ALN eaesohe le \n",
      "OUT eeee\n",
      "9700\n",
      "INP Anationmaypurchasethepayandprovisionsofanarmyinadistant\n",
      "TRU A nation may purchase the pay and provisions of an army in a distant\n",
      "ALN se he t\n",
      "OUT ee\n",
      "9800\n",
      "INP beenemployedinit,orhindersfromgoingtoitapartofwhat\n",
      "TRU been employed in it, or hinders from going to it a part of what\n",
      "ALN een emoedtoderooot\n",
      "OUT eeeee\n",
      "9900\n",
      "INP lettersinthecountrywhereittakesplace,totheemploymentinwhich\n",
      "TRU letters in the country where it takes place, to the employment in which\n",
      "ALN etterthe othee tkese,tothe eoen\n",
      "OUT eeeeeeeeee\n",
      "ERROR 10000 0.89566     196274 219139\n",
      "10000\n",
      "INP becomesreallycheaper,andeverythingelseremainspreciselyofthe\n",
      "TRU becomes really cheaper, and every thing else remains precisely of the\n",
      "ALN eoesreaheaeraeertee remreelote\n",
      "OUT eeeeeeeeeeeee\n",
      "10100\n",
      "INP amethodoflending,notmoney,indeed,butwhatisequivalenttomoney,\n",
      "TRU a method of lending, not money, indeed, but what is equivalent to money,\n",
      "ALN  etoolenotoeydeedt eaenttooe\n",
      "OUT eeeeeeee\n",
      "10200\n",
      "INP andsilvermoneywhichcirculatesinanycountrymayveryproperlybe\n",
      "TRU and silver money which circulates in any country may very properly be\n",
      "ALN vermoeyatesotaveroere\n",
      "OUT eeeeee\n",
      "10300\n",
      "INP ismorevaluablethanasumofEnglishmoneycontaininganequalweight\n",
      "TRU is more valuable than a sum of English money containing an equal weight\n",
      "ALN moe ae ta omoeycotaeaeit\n",
      "OUT eeeee\n",
      "10400\n",
      "INP request,oftheworkinitsoriginal\"PlainVanillaASCII\"orother\n",
      "TRU request, of the work in its original \"Plain Vanilla ASCII\" or other\n",
      "ALN reuet, of the woriits o or othe\n",
      "OUT eeoteote\n",
      "10500\n",
      "INP so.Inthosetimesofviolenceanddisorder,besides,itwasconvenient\n",
      "TRU so. In those times of violence and disorder, besides, it was convenient\n",
      "ALN o. toe ties ofioence asodereiesit acoenient\n",
      "OUT otoeteooeeoeeetoee\n",
      "10600\n",
      "INP interestoftheirownparticularorder;atleast,iftheyhaveany\n",
      "TRU interest of their own particular order; at least, if they have any\n",
      "ALN interet of thei owatiia oderat leat,if theyave  \n",
      "OUT teetoteotoetettee\n",
      "10700\n",
      "INP SpainandPortugalfurnishbutasmallpartofit.Thecapitalwhich\n",
      "TRU Spain and Portugal furnish but a small part of it. The capital which\n",
      "ALN aaPortuanihut aaart ofiit.hhe aitahich\n",
      "OUT otttotet\n",
      "10800\n",
      "INP will,indeed,besomeprofit,butlessthaniftherewasnoseignorage.\n",
      "TRU will, indeed, be some profit, but less than if there was no seignorage.\n",
      "ALN iindeed,be soe rofit,ut less thha if there wanno seinorae.\n",
      "OUT eeeoeottetteeoeoe\n",
      "10900\n",
      "INP withthephrase\"ProjectGutenberg\"associatedwithorappearingonthe\n",
      "TRU with the phrase \"Project Gutenberg\" associated with or appearing on the\n",
      "ALN ith the phrase roect utener associated ith or appearin onn the\n",
      "OUT tteeoetteeotetoeote\n",
      "11000\n",
      "INP which,itisintendedshouldfallindifferentlyuponallthosethree\n",
      "TRU which, it is intended should fall indifferently upon all those three\n",
      "ALN hich, it i intened houffal inifferentlppon al those three\n",
      "OUT tteeoaeetoatoetee\n",
      "11100\n",
      "INP whichwasconsideredasimmediatelyconnectedwiththedoctrinesof\n",
      "TRU which was considered as immediately connected with the doctrines of\n",
      "ALN wwhhiicchh  waonnssiidderedd ass immmedddiatellyy  connecctedd wwiithh the  doccctrriiness off\n",
      "OUT hihaee aieiateone  teit te o t e  o\n",
      "11200\n",
      "INP theirowninterest,wemaybeassured,thatitcannothappensovery\n",
      "TRU their own interest, we may be assured, that it cannot happen so very\n",
      "ALN their owwwn interressst,, wwe mmayy bbe asssssuured,,  that it ccannnot  haappen so ver\n",
      "OUT the i o    i  te re   t  e   a  e a    re    thatit a   oe e\n",
      "11300\n",
      "INP Theproportionbetweentherealpriceofancientandmoderntimes,\n",
      "TRU The proportion between the real price of ancient and modern times,\n",
      "ALN TTThhe prrooppoortiiioon bbettwween tthhe reaal  prriicce of  ancciiiennt  andd  mmoddernn tiiimmes,\n",
      "OUT oe h   e  ee  here    he    e     er  e\n",
      "11400\n",
      "INP tasteforMadeirawine,whichourofficersfoundestablishedinallour\n",
      "TRU taste for Madeira wine, which our officers found established in all our\n",
      "ALN tassste  for  Maddeira  wine,  whicch ouur offffficcerss ffouunnd esstabbbllissshedd in alll  ouur\n",
      "OUT tate  orae iraine hihoro ieronne  taiheinao\n",
      "11500\n",
      "INP improvementhave,inthisrespect,beenagooddealenhancedbyagreat\n",
      "TRU improvement have, in this respect, been a good deal enhanced by a great\n",
      "ALN immmprovvemment havve,  in this ressppect,  been a ggoodd deal enhanced bbyy a ggreat\n",
      "OUT iroee nthae inthire  e  tee naooe ae nhane  are at\n",
      "11600\n",
      "INP Ifatanytimeitexceedstheeffectualdemand,someofthecomponent\n",
      "TRU If at any time it exceeds the effectual demand, some of the component\n",
      "ALN If at any time it exxceedd  the effectuall demand,, some of the component\n",
      "OUT  atan tieite  ee thee e t a e an oeo the o  onent\n",
      "11700\n",
      "INP necessary,evenamongthatmildandgentlepeople;anditwasunder\n",
      "TRU necessary, even among that mild and gentle people; and it was under\n",
      "ALN necessary, even among that mild and gentle people;  and it was under\n",
      "OUT ne  e s ar   e  ena on  that i  an   ent e  e o  e  an it a   n er\n",
      "11800\n",
      "INP SecondPeriod.--Buthowvarioussoevermayhavebeentheopinionsofthe\n",
      "TRU Second Period.--But how various soever may have been the opinions of the\n",
      "ALN Second Period.--But how various soever may have been the opinions of the\n",
      "OUT econseriosslllcthocdariolssoeercashaeeen the ocinions ofthe\n",
      "11900\n",
      "INP thegreaterpartofthepeople.Alltheotherninety-ninepartsare\n",
      "TRU the greater part of the people. All the other ninety-nine parts are\n",
      "ALN the greater part of the people. All the other ninety-nine parts are\n",
      "OUT theureateruar tofthece ouledullthe othernine tsunine cartsare\n",
      "12000\n",
      "INP Inacountrywheretheordinaryprofitsofstock,inthegreaterpartof\n",
      "TRU In a country where the ordinary profits of stock, in the greater part of\n",
      "ALN In a country where the ordinary profits of stock, in the greater part of\n",
      "OUT unacoln trschere the ordinarsprofitsofs toclsin the preatercar to\n",
      "12100\n",
      "INP lessofmakingitgobackwards.Ifanationcouldnotprosperwithout\n",
      "TRU less of making it go backwards. If a nation could not prosper without\n",
      "ALN less of making it go backwards. If a nation could not prosper without\n",
      "OUT pessofmadinditmouacdmardssufanationcouldnotpros peruithout\n",
      "12200\n",
      "INP carryonwiththoseofotherEuropeannations;andsomepart,nodoubt,\n",
      "TRU carry on with those of other European nations; and some part, no doubt,\n",
      "ALN carry on with those of other European nations; and some part, no doubt,\n",
      "OUT carr,ondiththose ofotheruuroue annations ,andsoue martdnodoult\n",
      "12300\n",
      "INP Noequalcapitalputsintomotionagreaterquantityofproductive\n",
      "TRU No equal capital puts into motion a greater quantity of productive\n",
      "ALN No equal capital puts into motion a greater quantity of productive\n",
      "OUT foedualcalitalcutsintofotionagreateruuantitdofcroductie\n",
      "12400\n",
      "INP uncertain,notonlywhetherthiseventhasactuallytakenplace,but\n",
      "TRU uncertain, not only whether this event has actually taken place, but\n",
      "ALN uncertain, not only whether this event has actually taken place, but\n",
      "OUT uncer taindnotonls che ther thise ben thas actualld talenulaced uut\n",
      "12500\n",
      "INP thiscase,paysnotonlyitsownwagesandtheprofitofthestockwhich\n",
      "TRU this case, pays not only its own wages and the profit of the stock which\n",
      "ALN this case, pays not only its own wages and the profit of the stock which\n",
      "OUT this case,palsnotonllitsolnlalesand theprofitofthestoclchich\n",
      "12600\n",
      "INP uponitalmostasfastastheyareissued.Foransweringoccasional\n",
      "TRU upon it almost as fast as they are issued. For answering occasional\n",
      "ALN upon it almost as fast as they are issued. For answering occasional\n",
      "OUT uponitalcos tas fas tas the,areissued,forans cerindoccas iona\n",
      "12700\n",
      "INP oneshouldimagine,wouldhaveamoredirectoperationthanoneupon\n",
      "TRU one should imagine, would have a more direct operation than one upon\n",
      "ALN one should imagine, would have a more direct operation than one upon\n",
      "OUT one shouldiualine, couldhale acored irectoperation thanoneucon\n",
      "12800\n",
      "INP upontheowneroftheground,who,inordertopayhisshare,wouldbe\n",
      "TRU upon the owner of the ground, who, in order to pay his share, would be\n",
      "ALN upon the owner of the ground, who, in order to pay his share, would be\n",
      "OUT upon the omnerof the pround, phod inordertopadhis share, pould me\n",
      "12900\n",
      "INP donebefore.Itisdifficulttosaywhichismosttrifling,this\n",
      "TRU done before. It is difficult to say which is most trifling, this\n",
      "ALN done before. It is difficult to say which is most trifling, this\n",
      "OUT done be fored,tisdif ficult tos ad chichis mosttrifling, this\n",
      "13000\n",
      "INP registerswhich,itisacknowledged,oughttobekeptsecret,ought\n",
      "TRU registers which, it is acknowledged, ought to be kept secret, ought\n",
      "ALN registers which, it is acknowledged, ought to be kept secret, ought\n",
      "OUT regis ters which,itis acgnopled ged, ought topegeptse cret, ought\n",
      "13100\n",
      "INP intowhichIndostanhas,atdifferenttimes,beendivided,havealways\n",
      "TRU into which Indostan has, at different times, been divided, have always\n",
      "ALN into which Indostan has, at different times, been divided, have always\n",
      "OUT intowhichgndostanhas,atdifferenttimes, beendigided,havealgads\n",
      "13200\n",
      "INP singleorderofmen,isinmanydifferentwayshurtfultothegeneral\n",
      "TRU single order of men, is in many different ways hurtful to the general\n",
      "ALN single order of men, is in many different ways hurtful to the general\n",
      "OUT singleorderof mend isinmanddifferent wad shurtfultothe venera\n",
      "13300\n",
      "INP belonged.Itwasenacted,therefore,bythe1stofJamesII.thatthe\n",
      "TRU belonged. It was enacted, therefore, by the 1st of James II. that the\n",
      "ALN belonged. It was enacted, therefore, by the 1st of James II. that the\n",
      "OUT belonbed,mt masenacted, there fore, m, themstof mamesmm, that the\n",
      "13400\n",
      "INP ofdoubtfulcredit;yet,stilltheshortnessofthedategivessome\n",
      "TRU of doubtful credit; yet, still the shortness of the date gives some\n",
      "ALN of doubtful credit; yet, still the shortness of the date gives some\n",
      "OUT of doumtfulcredityyet, still the s hortness of thed ate yives some\n",
      "13500\n",
      "INP andriseasitrises.Theprogressofinterest,therefore,mayleadus\n",
      "TRU and rise as it rises. The progress of interest, therefore, may lead us\n",
      "ALN and rise as it rises. The progress of interest, therefore, may lead us\n",
      "OUT andriseasitrises, whe progressofinterest, therefore, mayleadus\n",
      "13600\n",
      "INP InthetradetoAmerica,everynationendeavourstoengrossasmuchas\n",
      "TRU In the trade to America, every nation endeavours to engross as much as\n",
      "ALN In the trade to America, every nation endeavours to engross as much as\n",
      "OUT mn the trade tommericadeverynationendeagours toengrossas muchas\n",
      "13700\n",
      "INP ofVirginia,whichhadbeenpurchasedwithBritishmanufactures,the\n",
      "TRU of Virginia, which had been purchased with British manufactures, the\n",
      "ALN of Virginia, which had been purchased with British manufactures, the\n",
      "OUT ofgirginia, whichhad beenpur chased withgritishmanuf actures, the\n",
      "13800\n",
      "INP WARRANTIESOFMERCHANTIBILITYORFITNESSFORANYPURPOSE.\n",
      "TRU WARRANTIES OF MERCHANTIBILITY OR FITNESS FOR ANY PURPOSE.\n",
      "ALN WARRANTIE S O F MERCHANTIBILIT Y O R FITNES S FOR AN Y PURPOSE.\n",
      "OUT mbbbbbbbbbmbbbbbbbbbbbbbbbmmbbbbbbbbbmmbmmmmmmmyy\n",
      "13900\n",
      "INP calledtheoldsubsidy,everymerchant,whetherEnglishoralien.\n",
      "TRU called the old subsidy, every merchant, whether English or alien.\n",
      "ALN called the old subsidy, every merchant, whether English or alien.\n",
      "OUT called the old subsidy,every mer chant, whe therbnglishoralien\n",
      "14000\n",
      "INP naturalprice.Thewholequantityuponhandcanbedisposedoffor\n",
      "TRU natural price. The whole quantity upon hand can be disposed of for\n",
      "ALN natural price. The whole quantity upon hand can be disposed of for\n",
      "OUT naturalprice, whe whole buantityuponhand can bedis posed of for\n",
      "14100\n",
      "INP tillhewasactuallycalledupontotakethefield.Inothercountries,\n",
      "TRU till he was actually called upon to take the field. In other countries,\n",
      "ALN till he was actually called upon to take the field. In other countries,\n",
      "OUT tillhe was actually calledupontotabe the field, bno ther countries,\n",
      "14200\n",
      "INP thedifferentrealvaluesofaparticularcommodityatdifferenttimes\n",
      "TRU the different real values of a particular commodity at different times\n",
      "ALN the different real values of a particular commodity at different times\n",
      "OUT thed if ferentrealgalues ofaparticular com mod ity atd if ferenttimes\n",
      "14300\n",
      "INP saidtobeextremelyoppressive.In1643,in1645,andin1661,the\n",
      "TRU said to be extremely oppressive. In 1643, in 1645, and in 1661, the\n",
      "ALN said to be extremely oppressive. In 1643, in 1645, and in 1661, the\n",
      "OUT said to bee,tremely oppressive, bnybbb, ingbbb, and ingbyb, the\n",
      "14400\n",
      "INP wouldremoveboththeirresidenceandtheircapitaltosomeother\n",
      "TRU would remove both their residence and their capital to some other\n",
      "ALN would remove both their residence and their capital to some other\n",
      "OUT wouldre move both theirresidence and the ir capitaltosomeother\n",
      "14500\n",
      "INP Tillafterthemiddleofthefourteenthcentury,fivemerks,containing\n",
      "TRU Till after the middle of the fourteenth century, five merks, containing\n",
      "ALN Till after the middle of the fourteenth century, five merks, containing\n",
      "OUT willafter the middle of the fourteen thcentury, fivemerys, containin\n",
      "14600\n",
      "INP purchasewithit.\n",
      "TRU purchase with it.\n",
      "ALN purchase with it.\n",
      "OUT purchase withit\n",
      "14700\n",
      "INP ofhereducation.Itseldomhappensthataman,inanypartofhislife,\n",
      "TRU of her education. It seldom happens that a man, in any part of his life,\n",
      "ALN of her education. It seldom happens that a man, in any part of his life,\n",
      "OUT ofhereducationy wtseldomhappens thataman, in any part of hislife,\n",
      "14800\n",
      "INP Thosesystems,therefore,whichpreferringagriculturetoallother\n",
      "TRU Those systems, therefore, which preferring agriculture to all other\n",
      "ALN Those systems, therefore, which preferring agriculture to all other\n",
      "OUT whosesystems, there fore, which preferringagriculturetoallo ther\n",
      "14900\n",
      "INP byM.Montesquieu,notfromtheirpoverty,butpartlyfromthis,and\n",
      "TRU by M. Montesquieu, not from their poverty, but partly from this, and\n",
      "ALN by M. Montesquieu, not from their poverty, but partly from this, and\n",
      "OUT by by bontes buieu, notfrom their poverty, but partly fromthis, and\n",
      "15000\n",
      "INP labour;andthedegreetowhichthedivisionoflabourcanbeintroduced\n",
      "TRU labour; and the degree to which the division of labour can be introduced\n",
      "ALN labour; and the degree to which the division of labour can be introduced\n",
      "OUT la boury and the degree to which the divis ion of la bourcan beintroduced\n",
      "15100\n",
      "INP thewayoftax,thelesshecanaffordtopayinthewayofrent.Atax\n",
      "TRU the way of tax, the less he can afford to pay in the way of rent. A tax\n",
      "ALN the way of tax, the less he can afford to pay in the way of rent. A tax\n",
      "OUT the way oftav, thelesshecanaf ford topay in the way ofrentyyta\n",
      "15200\n",
      "INP andithadprobablybeguntodosoevensometimebeforetheendofthe\n",
      "TRU and it had probably begun to do so even some time before the end of the\n",
      "ALN and it had probably begun to do so even some time before the end of the\n",
      "OUT andithad probably be gun todosoevensometime be fore theend of the\n",
      "15300\n",
      "INP Butthoughitmaybeimpossibletodetermine,withanydegreeof\n",
      "TRU But though it may be impossible to determine, with any degree of\n",
      "ALN But though it may be impossible to determine, with any degree of\n",
      "OUT but thoughit may beim pos sible todetermine, withany degree of\n",
      "15400\n",
      "INP timeexceedthatsum,astheexcesscouldneitherbesentabroadnorbe\n",
      "TRU time exceed that sum, as the excess could neither be sent abroad nor be\n",
      "ALN time exceed that sum, as the excess could neither be sent abroad nor be\n",
      "OUT timeegceed thatsumy astheegcess couldneitherbesentabroadnorbe\n",
      "15500\n",
      "INP disadvantagesofthedifferentemploymentsoflabourandstock.\n",
      "TRU disadvantages of the different employments of labour and stock.\n",
      "ALN disadvantages of the different employments of labour and stock.\n",
      "OUT disadvantages of thed ifferentemployments oflabourands tocy\n",
      "15600\n",
      "INP ministersandexecutiveofficersofthatparliament,thegreaterpartof\n",
      "TRU ministers and executive officers of that parliament, the greater part of\n",
      "ALN ministers and executive officers of that parliament, the greater part of\n",
      "OUT minis tersandeve cutive of ficers of that parliament, the greater part of\n",
      "15700\n",
      "INP III.beenreckonedaverymoderatepriceofwheat,sinceitrequireda\n",
      "TRU III. been reckoned a very moderate price of wheat, since it required a\n",
      "ALN III. been reckoned a very moderate price of wheat, since it required a\n",
      "OUT bgby bee nrecgoned avery moderate price of wheat, sin ceitre guireda\n",
      "15800\n",
      "INP Ground-rents,andtheordinaryrentofland,aretherefore,perhaps,the\n",
      "TRU Ground-rents, and the ordinary rent of land, are therefore, perhaps, the\n",
      "ALN Ground-rents, and the ordinary rent of land, are therefore, perhaps, the\n",
      "OUT bround vrents, and the ordinaryrentofland, aretheref ore, perhaps, the\n",
      "15900\n",
      "INP bodyofthepeople,mightbethesameaftersuchataxasbefore.\n",
      "TRU body of the people, might be the same after such a tax as before.\n",
      "ALN body of the people, might be the same after such a tax as before.\n",
      "OUT body of the people, might be thesame aftersuchatavas before\n",
      "16000\n",
      "INP societyfromtheviolenceandinjusticeofotherindependentsocieties,\n",
      "TRU society from the violence and injustice of other independent societies,\n",
      "ALN society from the violence and injustice of other independent societies,\n",
      "OUT society from theviolence and in gus tice ofotherindependentsocie ties,\n",
      "16100\n",
      "INP irregularanduncertain,butbecausetheyaretooeagertobecome\n",
      "TRU irregular and uncertain, but because they are too eager to become\n",
      "ALN irregular and uncertain, but because they are too eager to become\n",
      "OUT irregular anduncertain, but be cause they aretooeagertobe come\n",
      "16200\n",
      "INP eachconventiclebynewindustryandaddress,inpractisingonthe\n",
      "TRU each conventicle by new industry and address, in practising on the\n",
      "ALN each conventicle by new industry and address, in practising on the\n",
      "OUT each conventicle by ne windustry and address, inpractis ing on the\n",
      "16300\n",
      "INP alterationorimprovementofanykind.Anaugmentationoffortuneisthe\n",
      "TRU alteration or improvement of any kind. An augmentation of fortune is the\n",
      "ALN alteration or improvement of any kind. An augmentation of fortune is the\n",
      "OUT alterationorimprovementof any .ind. bnaugmentationof fortuneis the\n",
      "16400\n",
      "INP Apprenticeshipswerealtogetherunknowntotheancients.Thereciprocal\n",
      "TRU Apprenticeships were altogether unknown to the ancients. The reciprocal\n",
      "ALN Apprenticeships were altogether unknown to the ancients. The reciprocal\n",
      "OUT Tpprentice ships werealtoge therungno wn to the ancients. where ciprocal\n",
      "16500\n",
      "INP ownconsumptionduringthatday,month,oryear.Atnomomentoftime,\n",
      "TRU own consumption during that day, month, or year. At no moment of time,\n",
      "ALN own consumption during that day, month, or year. At no moment of time,\n",
      "OUT ownconsumption d uring that d ay, mon th, oryear. .tnomoment of time,\n",
      "16600\n",
      "INP uponthecoinageofsoverylargeasum.Thoughthebank,therefore,\n",
      "TRU upon the coinage of so very large a sum. Though the bank, therefore,\n",
      "ALN upon the coinage of so very large a sum. Though the bank, therefore,\n",
      "OUT upon the coinage of soverylargeasumy whough the bang, therefore,\n",
      "16700\n",
      "INP England.ThecapitalwhichhadbeenemployedinproducingtheEnglish\n",
      "TRU England. The capital which had been employed in producing the English\n",
      "ALN England. The capital which had been employed in producing the English\n",
      "OUT wngland. whe capital whichhad beenemployed in producing the wnglish\n",
      "16800\n",
      "INP InFrancethereareseveraldifferentsortsofsecretregisters.This\n",
      "TRU In France there are several different sorts of secret registers. This\n",
      "ALN In France there are several different sorts of secret registers. This\n",
      "OUT wn grance thereareseverald if ferent sorts of se cretregisters. whis\n",
      "16900\n",
      "INP encouragementstoexportation.\n",
      "TRU encouragements to exportation.\n",
      "ALN encouragements to exportation.\n",
      "OUT en couragements toe.portation.\n",
      "17000\n",
      "INP labour;andthedegreetowhichthedivisionoflabourcanbeintroduced\n",
      "TRU labour; and the degree to which the division of labour can be introduced\n",
      "ALN labour; and the degree to which the division of labour can be introduced\n",
      "OUT laboury and thede gree to which thedivision oflabourcan beintroduced\n",
      "17100\n",
      "INP themtothedegreeinwhichitisnecessarytoacquirethem.\n",
      "TRU them to the degree in which it is necessary to acquire them.\n",
      "ALN them to the degree in which it is necessary to acquire them.\n",
      "OUT the mtothe degree in whichitisneces s ary toacguire the m.\n",
      "17200\n",
      "INP andthemarvellous,wouldhavemoreofthesolidandtheprofitable;\n",
      "TRU and the marvellous, would have more of the solid and the profitable;\n",
      "ALN and the marvellous, would have more of the solid and the profitable;\n",
      "OUT and the marvellous, would have more of the solidand the profitable\n",
      "17300\n",
      "INP itsownnaturesouncertain,mustrendertheexchangealwaysvery\n",
      "TRU its own nature so uncertain, must render the exchange always very\n",
      "ALN its own nature so uncertain, must render the exchange always very\n",
      "OUT it so wnnature souncertain, mus trender the e.ch angeal way svery\n",
      "17400\n",
      "INP IthasforsometimepastbeenthepolicyofGreatBritaintodiscourage\n",
      "TRU It has for some time past been the policy of Great Britain to discourage\n",
      "ALN It has for some time past been the policy of Great Britain to discourage\n",
      "OUT Ithas for sometime past been the policy of great gritain tod is courage\n",
      "17500\n",
      "INP offence,isdisabledfromrequiringanydebtoraccountbelongingto\n",
      "TRU offence, is disabled from requiring any debt or account belonging to\n",
      "ALN offence, is disabled from requiring any debt or account belonging to\n",
      "OUT offence, isdisabled fromrekuir ing any debtoraccount belonging to\n",
      "17600\n",
      "INP employmentagreatershareofthecapitalofthecountry,thanwhat\n",
      "TRU employment a greater share of the capital of the country, than what\n",
      "ALN employment a greater share of the capital of the country, than what\n",
      "OUT employ mentagreatershare of the capital of the country, th an what\n",
      "17700\n",
      "INP whichcirculatesinanycountrymustrequireacertainexpense,first\n",
      "TRU which circulates in any country must require a certain expense, first\n",
      "ALN which circulates in any country must require a certain expense, first\n",
      "OUT which cir culatesinany country mustrexuireacertaine.pense, first\n",
      "17800\n",
      "INP beacquiredbysuccessinsomeparticularprofessionsmay,nodoubt,\n",
      "TRU be acquired by success in some particular professions may, no doubt,\n",
      "ALN be acquired by success in some particular professions may, no doubt,\n",
      "OUT beackuired by successinsome particular professions may, nod oubt,\n",
      "17900\n",
      "INP dealersmustnecessarilyfluctuatewiththepriceofthecommodities.\n",
      "TRU dealers must necessarily fluctuate with the price of the commodities.\n",
      "ALN dealers must necessarily fluctuate with the price of the commodities.\n",
      "OUT dealers mustneces s arily fluct uate with the price of the commodities.\n",
      "18000\n",
      "INP TheEnglishcoppercompanyofLondon,thelead-smeltingcompany,the\n",
      "TRU The English copper company of London, the lead-smelting company, the\n",
      "ALN The English copper company of London, the lead-smelting company, the\n",
      "OUT The bnglish co pper company of bondon, the lead.s melting company, the\n",
      "18100\n",
      "INP electeditsownmagistrates,andmadepeaceorwarwithitsneighbours,\n",
      "TRU elected its own magistrates, and made peace or war with its neighbours,\n",
      "ALN elected its own magistrates, and made peace or war with its neighbours,\n",
      "OUT electedit so wnmagistrates, and made peaceor war withitsneigh bours,\n",
      "18200\n",
      "INP usefultomen;andthelandswhicharefitforthosepurposesarenot\n",
      "TRU useful to men; and the lands which are fit for those purposes are not\n",
      "ALN useful to men; and the lands which are fit for those purposes are not\n",
      "OUT use fultomenk and the lands which arefitf or those purposes arenot\n",
      "18300\n",
      "INP graduallypurchaseorcommandasmallerandasmallerquantityof\n",
      "TRU gradually purchase or command a smaller and a smaller quantity of\n",
      "ALN gradually purchase or command a smaller and a smaller quantity of\n",
      "OUT gradually pur chaseor command as maller and as mallerkuantity of\n",
      "18400\n",
      "INP usanaccountofthepricesofbutcher'smeatascommonlypaidbythat\n",
      "TRU us an account of the prices of butcher's meat as commonly paid by that\n",
      "ALN us an account of the prices of butcher's meat as commonly paid by that\n",
      "OUT usanaccount of the prices of butcher.smeatas commonly paid by that\n",
      "18500\n",
      "INP Whenanyexpensivemachineiserected,theextraordinaryworktobe\n",
      "TRU When any expensive machine is erected, the extraordinary work to be\n",
      "ALN When any expensive machine is erected, the extraordinary work to be\n",
      "OUT Thenany expensive mach ineiserected, thee.tr aor dinary wor.to be\n",
      "18600\n",
      "INP toenjoythehospitalityoftheclergy.Theretainersofsomeparticular\n",
      "TRU to enjoy the hospitality of the clergy. The retainers of some particular\n",
      "ALN to enjoy the hospitality of the clergy. The retainers of some particular\n",
      "OUT toenToy thehospitality of theclergy. Theretainers of someparticular\n",
      "18700\n",
      "INP ofthedutyofthatpower;andifnationsalwaysactedconsistently,the\n",
      "TRU of the duty of that power; and if nations always acted consistently, the\n",
      "ALN of the duty of that power; and if nations always acted consistently, the\n",
      "OUT of the duty of that power. andifnationsalway sactedconsistently, the\n",
      "18800\n",
      "INP trade.Whenmanufactureshaveadvancedtoacertainpitchofgreatness,\n",
      "TRU trade. When manufactures have advanced to a certain pitch of greatness,\n",
      "ALN trade. When manufactures have advanced to a certain pitch of greatness,\n",
      "OUT trade. Thenmanufacture s haveadvanced toacertainpitch of greatness,\n",
      "18900\n",
      "INP betweenthetropics,thenegroes,forexampleonthecoastofGuinea.\n",
      "TRU between the tropics, the negroes, for example on the coast of Guinea.\n",
      "ALN between the tropics, the negroes, for example on the coast of Guinea.\n",
      "OUT between the tropics, the ne groes, forexample on the coast of buine a.\n",
      "19000\n",
      "INP bydiscountingrealbillsofexchange,andpartlybylendingupon\n",
      "TRU by discounting real bills of exchange, and partly by lending upon\n",
      "ALN by discounting real bills of exchange, and partly by lending upon\n",
      "OUT by dis count in greal bills ofe.ch ange, and partly by lend in gupon\n",
      "19100\n",
      "INP Thoselawsandcustoms,sofavourabletotheyeomanry,haveperhaps\n",
      "TRU Those laws and customs, so favourable to the yeomanry, have perhaps\n",
      "ALN Those laws and customs, so favourable to the yeomanry, have perhaps\n",
      "OUT Thoselaws and cus toms, sofavourable to the y eomanry, have perhaps\n",
      "19200\n",
      "INP noindisputabledifferencebutthatofsex,andthatofage.Themale\n",
      "TRU no indisputable difference but that of sex, and that of age. The male\n",
      "ALN no indisputable difference but that of sex, and that of age. The male\n",
      "OUT noind is putabled ifference but that of se., and that of age. The male\n",
      "19300\n",
      "INP buyingitofanyothernation,exceptSpain,weshouldbuyitatthe\n",
      "TRU buying it of any other nation, except Spain, we should buy it at the\n",
      "ALN buying it of any other nation, except Spain, we should buy it at the\n",
      "OUT buy in git o f any other nat ion, exce pt w pain, we s hould buy it at the\n",
      "19400\n",
      "INP toconsiderabledutieswhenimportedfromanyothercountry.The\n",
      "TRU to considerable duties when imported from any other country. The\n",
      "ALN to considerable duties when imported from any other country. The\n",
      "OUT toconsiderable duties whenimported from any other country. The\n",
      "19500\n",
      "INP but,inconsequenceoftheseimprovements,hecanaffordtosell\n",
      "TRU but, in consequence of these improvements, he can afford to sell\n",
      "ALN but, in consequence of these improvements, he can afford to sell\n",
      "OUT but, inconsequence of the seim provements, he can af fordtosell\n",
      "19600\n",
      "INP genealogies;andthereisahistorywrittenbyaTartarKhan,which\n",
      "TRU genealogies; and there is a history written by a Tartar Khan, which\n",
      "ALN genealogies; and there is a history written by a Tartar Khan, which\n",
      "OUT genealogiesx and the reis ahis tory written by aTartar Than, which\n",
      "19700\n",
      "INP thewholebodyofthepeoplethenecessityoflearningthoseexercises,\n",
      "TRU the whole body of the people the necessity of learning those exercises,\n",
      "ALN the whole body of the people the necessity of learning those exercises,\n",
      "OUT the whole body of the people the necessity of learning tho seever cises,\n",
      "19800\n",
      "INP ahundredmen,anddrawnbyfourhundredhorses.Upontwohundredtons\n",
      "TRU a hundred men, and drawn by four hundred horses. Upon two hundred tons\n",
      "ALN a hundred men, and drawn by four hundred horses. Upon two hundred tons\n",
      "OUT ahund redmen, and drawn by fourhund redhorses. Ipon t wohundred tons\n",
      "19900\n",
      "INP inexchange.'Thethingswhichhavethegreatestvalueinusehave\n",
      "TRU in exchange.' The things which have the greatest value in use have\n",
      "ALN in exchange.' The things which have the greatest value in use have\n",
      "OUT ine.change..The thin gs which have the greates tvalueinusehave\n",
      "ERROR 20000 0.0834311     18283 219139\n",
      "20000\n",
      "INP perhaps,bebetterillustratedthanbythedifferentstateofthose\n",
      "TRU perhaps, be better illustrated than by the different state of those\n",
      "ALN perhaps, be better illustrated than by the different state of those\n",
      "OUT perhaps, be betterillustrated than by thedifferentstate of those\n",
      "20100\n",
      "INP terroroftheirname,thatthegreaterpartoftheothernationsof\n",
      "TRU terror of their name, that the greater part of the other nations of\n",
      "ALN terror of their name, that the greater part of the other nations of\n",
      "OUT terror of theirname, that the greaterpart of the o thernations of\n",
      "20200\n",
      "INP ofalmostalltradingnationstoturnthatbalanceintheirownfavour,\n",
      "TRU of almost all trading nations to turn that balance in their own favour,\n",
      "ALN of almost all trading nations to turn that balance in their own favour,\n",
      "OUT of almostall tradingnations toturn that balance in theirownfavour,\n",
      "20300\n",
      "INP ofSwitzerland,therevenuewhichancientlybelongedtotheRoman\n",
      "TRU of Switzerland, the revenue which anciently belonged to the Roman\n",
      "ALN of Switzerland, the revenue which anciently belonged to the Roman\n",
      "OUT of.wit kerland, therevenue which anciently belonged to the Ioman\n",
      "20400\n",
      "INP MemoiresconcernantlesDroitsetImpositionsenEurope,tomei.page\n",
      "TRU Memoires concernant les Droits et Impositions en Europe, tome i. page\n",
      "ALN Memoires concernant les Droits et Impositions en Europe, tome i. page\n",
      "OUT Te moires concernantles qroit setxmpositionsen kurope, tome iy page\n",
      "20500\n",
      "INP thetax,whichthismaysometimesoccasionuponaparticularestate,is\n",
      "TRU the tax, which this may sometimes occasion upon a particular estate, is\n",
      "ALN the tax, which this may sometimes occasion upon a particular estate, is\n",
      "OUT the tak, which this may sometimesoccasionuponaparticularestate, is\n",
      "20600\n",
      "INP wheretheyhaveneverbeenincorporated,yetthecorporation-spirit,\n",
      "TRU where they have never been incorporated, yet the corporation-spirit,\n",
      "ALN where they have never been incorporated, yet the corporation-spirit,\n",
      "OUT where the y have never been incor porated, yet the cor poration.s pirit,\n",
      "20700\n",
      "INP Britain,uponlessthaneightmillionsofpeople,morethantenmillions\n",
      "TRU Britain, upon less than eight millions of people, more than ten millions\n",
      "ALN Britain, upon less than eight millions of people, more than ten millions\n",
      "OUT ritain, uponless thaneight millions of people, more thantenmillions\n",
      "20800\n",
      "INP productivepowersoflabour,inanimprovedstateofcultivation,\n",
      "TRU productive powers of labour, in an improved state of cultivation,\n",
      "ALN productive powers of labour, in an improved state of cultivation,\n",
      "OUT productive powers of labour, in anim provedstate of cultivation,\n",
      "20900\n",
      "INP theirdeaththeirownchildren,andnottheirlord,shouldsucceedto\n",
      "TRU their death their own children, and not their lord, should succeed to\n",
      "ALN their death their own children, and not their lord, should succeed to\n",
      "OUT their death theirownchild ren, and not their lor d, should succeed to\n",
      "21000\n",
      "INP Allthemembersoftheadministrationbesides,trademoreorlessupon\n",
      "TRU All the members of the administration besides, trade more or less upon\n",
      "ALN All the members of the administration besides, trade more or less upon\n",
      "OUT bll themembers of the administration besides, tr ade moreorlessupon\n",
      "21100\n",
      "INP forfeits£20,ifthewoolisunderthevalueof£10;andifofgreater\n",
      "TRU forfeits £20, if the wool is under the value of £10; and if of greater\n",
      "ALN forfeits £20, if the wool is under the value of £10; and if of greater\n",
      "OUT forfeits.I., if the woolisunder the value of.xI. and if of greater\n",
      "21200\n",
      "INP andofthegreatesterrorsofadministration.Liketheunknownprinciple\n",
      "TRU and of the greatest errors of administration. Like the unknown principle\n",
      "ALN and of the greatest errors of administration. Like the unknown principle\n",
      "OUT and of the greatesterrors of administration. Iike the unk nown principle\n",
      "21300\n",
      "INP employhiswholelabourinonesingleoperation.Asthelatteracquires\n",
      "TRU employ his whole labour in one single operation. As the latter acquires\n",
      "ALN employ his whole labour in one single operation. As the latter acquires\n",
      "OUT employ his whole labourinonesing leoperation. Is the latterackuires\n",
      "21400\n",
      "INP goodscheaperinthehomemarketthantheyotherwisewouldbe.Inother\n",
      "TRU goods cheaper in the home market than they otherwise would be. In other\n",
      "ALN goods cheaper in the home market than they otherwise would be. In other\n",
      "OUT goodscheaperin the homemarket than the y other wise would be. Inother\n",
      "21500\n",
      "INP way,asboththeshortestandthesurest,andhehadthegoodfortune\n",
      "TRU way, as both the shortest and the surest, and he had the good fortune\n",
      "ALN way, as both the shortest and the surest, and he had the good fortune\n",
      "OUT way, as both the shortest and the surest, andhe had the good fortune\n",
      "21600\n",
      "INP thegrowers,themanufacturers,themercers,anddrapers,the\n",
      "TRU the growers, the manufacturers, the mercers, and drapers, the\n",
      "ALN the growers, the manufacturers, the mercers, and drapers, the\n",
      "OUT the growers, the manuf acturers, the mercers, and drapers, the\n",
      "21700\n",
      "INP nearlyinthesameorder,too,inwhichIhaveheresetthemdown.\n",
      "TRU nearly in the same order, too, in which I have here set them down.\n",
      "ALN nearly in the same order, too, in which I have here set them down.\n",
      "OUT nearly in the sameorder, too, in which Thavehereset the mdown.\n",
      "21800\n",
      "INP too,hasbecomecheaper.Thegreaterpartoftheapples,andevenofthe\n",
      "TRU too, has become cheaper. The greater part of the apples, and even of the\n",
      "ALN too, has become cheaper. The greater part of the apples, and even of the\n",
      "OUT too, has be come cheaper. The greater part of the apples, an deven of the\n",
      "21900\n",
      "INP ofunmanufacturedbrass,ofwhatiscalledgun-metal,bell-metal,and\n",
      "TRU of unmanufactured brass, of what is called gun-metal, bell-metal, and\n",
      "ALN of unmanufactured brass, of what is called gun-metal, bell-metal, and\n",
      "OUT of unmanufactured brass, of whatis called gunxmetal, bellxmetal, and\n",
      "22000\n",
      "INP market,andtotheincreaseoftillage,thananyotherlawinthe\n",
      "TRU market, and to the increase of tillage, than any other law in the\n",
      "ALN market, and to the increase of tillage, than any other law in the\n",
      "OUT market, and to the in crease of till age, than any otherlaw in the\n",
      "22100\n",
      "INP samemanner,maynodoubtbeverydangerousrivalstothoseoftheir\n",
      "TRU same manner, may no doubt be very dangerous rivals to those of their\n",
      "ALN same manner, may no doubt be very dangerous rivals to those of their\n",
      "OUT samemanner, may nodoubt beveryd angerousrivals to those of their\n",
      "22200\n",
      "INP Taxesupontheproduceoflandmaybelevied,eitherinkind,or,\n",
      "TRU Taxes upon the produce of land may be levied, either in kind, or,\n",
      "ALN Taxes upon the produce of land may be levied, either in kind, or,\n",
      "OUT Tave supon the produce of land may belevied, either inkind, or,\n",
      "22300\n",
      "INP forcedtopay.ThemoreseveregovernmentofFranceassessesuponeach\n",
      "TRU forced to pay. The more severe government of France assesses upon each\n",
      "ALN forced to pay. The more severe government of France assesses upon each\n",
      "OUT forced to pay. The moresevere government of branceassessesupone ach\n",
      "22400\n",
      "INP annuallyspends,is,inmostcases,consumedbyidleguestsandmenial\n",
      "TRU annually spends, is, in most cases, consumed by idle guests and menial\n",
      "ALN annually spends, is, in most cases, consumed by idle guests and menial\n",
      "OUT annually spends, is, in most cases, consumed byidleguests andmenial\n",
      "22500\n",
      "INP whichcanberequiredinthatcountry.Suchland,indeed,isinNorth\n",
      "TRU which can be required in that country. Such land, indeed, is in North\n",
      "ALN which can be required in that country. Such land, indeed, is in North\n",
      "OUT which can berequire d in t hat country. buch land, indeed, is in korth\n",
      "22600\n",
      "INP If,onthecontrary,thesupply,bysomeaccident,shouldincrease,for\n",
      "TRU If, on the contrary, the supply, by some accident, should increase, for\n",
      "ALN If, on the contrary, the supply, by some accident, should increase, for\n",
      "OUT If, on the contrary, the supply, by some accident, should in crease, for\n",
      "22700\n",
      "INP acknowledgmentmustbepaiduponworkingit.Inbothregulations,\n",
      "TRU acknowledgment must be paid upon working it. In both regulations,\n",
      "ALN acknowledgment must be paid upon working it. In both regulations,\n",
      "OUT ack nowledgment must be paidupon working it. In bo thre gulations,\n",
      "22800\n",
      "INP andordinaryfundoftheirsubsistence.Thepracticeofmilitary\n",
      "TRU and ordinary fund of their subsistence. The practice of military\n",
      "ALN and ordinary fund of their subsistence. The practice of military\n",
      "OUT andord inary fund of theirsubs istence. The practice of military\n",
      "22900\n",
      "INP Inthemercantileregulationswhichhavebeentakennoticeofinthis\n",
      "TRU In the mercantile regulations which have been taken notice of in this\n",
      "ALN In the mercantile regulations which have been taken notice of in this\n",
      "OUT In the mercan tileregulations which have been taken notice of in this\n",
      "23000\n",
      "INP produceonlyonecropintheyear,andthough,fromtheprevalence\n",
      "TRU produce only one crop in the year, and though, from the prevalence\n",
      "ALN produce only one crop in the year, and though, from the prevalence\n",
      "OUT produce on ly one crop in the y ear, and though, from the prevalence\n",
      "23100\n",
      "INP oftobaccoinhiswarehouse,soishelikewisearichermanthanhewho\n",
      "TRU of tobacco in his warehouse, so is he likewise a richer man than he who\n",
      "ALN of tobacco in his warehouse, so is he likewise a richer man than he who\n",
      "OUT of to baccoinh is warehouse, soishe like wise arichermanthanhe who\n"
     ]
    }
   ],
   "source": [
    "!params=1 lrate=1e-3 save_file=spc ../clstmfiltertrain won-train.txt won-test.txt"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
